// import storage from 'good-storage'
// const FAVORITE_KEY = '__favorite__'
// const FAVORITE_MAX_LEN = 200

// export function saveFavorite (comment) {
//   let comments = storage.get(FAVORITE_KEY, [])
//   insertArray(comments, comment, (item) => {
//     return comment.id === item.id
//   }, FAVORITE_MAX_LEN)
//   storage.set(FAVORITE_KEY, comments)
//   return comments
// }

// export function deleteFavorite (comment) {
//   let comments = storage.get(FAVORITE_KEY, [])
//   deleteFromArray(comments, (item) => {
//     return item.id === comment.id
//   })
//   storage.set(FAVORITE_KEY, comments)
//   return comments
// }

// export function loadFavorite () {
//   return storage.get(FAVORITE_KEY, [])
// }

